<div class="file" id="List">
    <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#686550">
        <?php
        if (isset($associatedMessageBoard) && count($associatedMessageBoard) > 0) {
            $i = 0;
            foreach ($associatedMessageBoard as $arrayDetail) {
                ?>
                <tr style="vertical-align: top; padding: 5px;"><td style="background: #ffffff;">Date</td><td style="background: #ffffff;">&nbsp;<?php echo date('M j, Y', strtotime($arrayDetail['MessageBoard']['mdate'])); ?></td></tr>  
                <tr style="vertical-align: top; padding: 5px;"><td style="background: #ffffff;">Content</td><td style="background: #ffffff;">&nbsp;<?php echo nl2br($arrayDetail['MessageBoard']['mdetail']); ?></td></tr>
                <?php
                $i++;
            }
        } else{ ?>
            <tr>
                <td colspan="2" bgcolor="#ffffff" align="center">
                    <div class="pagination"><?php echo __("NO_RECORD_MESSAGE");  ?></div>
                </td>
            </tr> <?php
            }
        ?>
    
    </table>
</div>